#include "cocos2d.h"
#include "cocos-ext.h"

using namespace cocos2d;
using namespace cocos2d::extension;

class MyCCEditBox : public CCEditBox, public CCEditBoxDelegate
{
public:
    static MyCCEditBox* create(CCSize size, const char* bkImgName, const char* placeHolder);
    //MyCCEditBox();
    //virtual MyCCEditBox();
    void toExtensionsMainLayer(cocos2d::CCObject *sender);
   
    virtual void editBoxEditingDidBegin(cocos2d::extension::CCEditBox* editBox);
    virtual void editBoxEditingDidEnd(cocos2d::extension::CCEditBox* editBox);
    virtual void editBoxTextChanged(cocos2d::extension::CCEditBox* editBox, const std::string& text);
    virtual void editBoxReturn(cocos2d::extension::CCEditBox* editBox);
};
int tolua_Cocos2d_CCEditBox_create(lua_State* tolua_S);
int tolua_Cocos2d_CCEditBox_getText(lua_State* tolua_S);
int tolua_Cocos2d_CCEditBox_setText(lua_State* tolua_S);
int tolua_Cocos2d_CCEditBox_setInputFlag(lua_State* tolua_S);
